cmake_minimum_required(VERSION 2.8)
project(Akmos C)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -ansi -Werror -Wall -Wmissing-prototypes")
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3")
set(CMAKE_C_FLAGS_RELEASE "-O2 -fno-strict-aliasing")

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release)
endif()

include_directories(src)
add_subdirectory(src)
add_subdirectory(doc/man)
